package beanInfo;

public class WordInfo {

    public final static int WORD_MAX_LENGTH = 255; //单词的最大长度

    public static boolean isLengthLegal(String word) {
        return word != null && !word.isEmpty() && word.getBytes().length <= WORD_MAX_LENGTH;
    }
}
